package com.nervenets.shopping.service;

import com.nervenets.general.service.BaseService;
import com.nervenets.shopping.hibernate.domain.user.Manager;
import com.nervenets.shopping.hibernate.domain.user.RoleGroup;

import java.util.List;

public interface ManagerService extends BaseService<Manager> {
    Manager findByMobile(String mobile);

    long countByRoleGroupsId(RoleGroup roleGroup);

    List<Manager> findAllByRoleGroup(RoleGroup roleGroup);
}
